package com.ilvyou.data.lcs;

import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * Created by Administrator on 2017/2/13.
 */
public class CollectSconfig1Entity {
    private Integer versionid;
    private Long configid;
    private Integer minamount;
    private Integer maxamount;
    private Integer minday;
    private Integer maxday;
    private String msgcontent;
    private BigDecimal sendhour;
    private String sendweekday;
    private Timestamp createdon;
    private String createdby;
    private String createdname;
    private String createdip;
    private Short plevel;

    public Integer getVersionid() {
        return versionid;
    }

    public void setVersionid(Integer versionid) {
        this.versionid = versionid;
    }

    public Long getConfigid() {
        return configid;
    }

    public void setConfigid(Long configid) {
        this.configid = configid;
    }

    public Integer getMinamount() {
        return minamount;
    }

    public void setMinamount(Integer minamount) {
        this.minamount = minamount;
    }

    public Integer getMaxamount() {
        return maxamount;
    }

    public void setMaxamount(Integer maxamount) {
        this.maxamount = maxamount;
    }

    public Integer getMinday() {
        return minday;
    }

    public void setMinday(Integer minday) {
        this.minday = minday;
    }

    public Integer getMaxday() {
        return maxday;
    }

    public void setMaxday(Integer maxday) {
        this.maxday = maxday;
    }

    public String getMsgcontent() {
        return msgcontent;
    }

    public void setMsgcontent(String msgcontent) {
        this.msgcontent = msgcontent;
    }

    public BigDecimal getSendhour() {
        return sendhour;
    }

    public void setSendhour(BigDecimal sendhour) {
        this.sendhour = sendhour;
    }

    public String getSendweekday() {
        return sendweekday;
    }

    public void setSendweekday(String sendweekday) {
        this.sendweekday = sendweekday;
    }

    public Timestamp getCreatedon() {
        return createdon;
    }

    public void setCreatedon(Timestamp createdon) {
        this.createdon = createdon;
    }

    public String getCreatedby() {
        return createdby;
    }

    public void setCreatedby(String createdby) {
        this.createdby = createdby;
    }

    public String getCreatedname() {
        return createdname;
    }

    public void setCreatedname(String createdname) {
        this.createdname = createdname;
    }

    public String getCreatedip() {
        return createdip;
    }

    public void setCreatedip(String createdip) {
        this.createdip = createdip;
    }

    public Short getPlevel() {
        return plevel;
    }

    public void setPlevel(Short plevel) {
        this.plevel = plevel;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        CollectSconfig1Entity that = (CollectSconfig1Entity) o;

        if (versionid != null ? !versionid.equals(that.versionid) : that.versionid != null) return false;
        if (configid != null ? !configid.equals(that.configid) : that.configid != null) return false;
        if (minamount != null ? !minamount.equals(that.minamount) : that.minamount != null) return false;
        if (maxamount != null ? !maxamount.equals(that.maxamount) : that.maxamount != null) return false;
        if (minday != null ? !minday.equals(that.minday) : that.minday != null) return false;
        if (maxday != null ? !maxday.equals(that.maxday) : that.maxday != null) return false;
        if (msgcontent != null ? !msgcontent.equals(that.msgcontent) : that.msgcontent != null) return false;
        if (sendhour != null ? !sendhour.equals(that.sendhour) : that.sendhour != null) return false;
        if (sendweekday != null ? !sendweekday.equals(that.sendweekday) : that.sendweekday != null) return false;
        if (createdon != null ? !createdon.equals(that.createdon) : that.createdon != null) return false;
        if (createdby != null ? !createdby.equals(that.createdby) : that.createdby != null) return false;
        if (createdname != null ? !createdname.equals(that.createdname) : that.createdname != null) return false;
        if (createdip != null ? !createdip.equals(that.createdip) : that.createdip != null) return false;
        if (plevel != null ? !plevel.equals(that.plevel) : that.plevel != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = versionid != null ? versionid.hashCode() : 0;
        result = 31 * result + (configid != null ? configid.hashCode() : 0);
        result = 31 * result + (minamount != null ? minamount.hashCode() : 0);
        result = 31 * result + (maxamount != null ? maxamount.hashCode() : 0);
        result = 31 * result + (minday != null ? minday.hashCode() : 0);
        result = 31 * result + (maxday != null ? maxday.hashCode() : 0);
        result = 31 * result + (msgcontent != null ? msgcontent.hashCode() : 0);
        result = 31 * result + (sendhour != null ? sendhour.hashCode() : 0);
        result = 31 * result + (sendweekday != null ? sendweekday.hashCode() : 0);
        result = 31 * result + (createdon != null ? createdon.hashCode() : 0);
        result = 31 * result + (createdby != null ? createdby.hashCode() : 0);
        result = 31 * result + (createdname != null ? createdname.hashCode() : 0);
        result = 31 * result + (createdip != null ? createdip.hashCode() : 0);
        result = 31 * result + (plevel != null ? plevel.hashCode() : 0);
        return result;
    }
}
